import { URL_TRANSACTIONS_CEX } from "@/comm/api";
import { get } from "@/comm/request";
import { defineStore } from "pinia";

interface IState {
    list: any[];
}

export const useAction = defineStore("action", {
    state: (): IState => ({
        list: []
    }),

    getters: {},
    actions: {
        async loadData(address: string, startTime: number, endTime: number) {
            // console.log((endTime - startTime) / (1000 * 3600 * 24), "time");
            // let res: any = await get(URL_TRANSACTIONS_CEX, { contractAddress: address || "", startTime, endTime });
            // console.log(res, "交易行为-----");
            // this.list = res.data || [];
        }
    }
});
